package com.yanyi.music.service.impl;

import com.yanyi.music.dao.SingerMapper;
import com.yanyi.music.domain.Singer;
import com.yanyi.music.service.SingerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yaml.snakeyaml.events.Event;

import java.util.List;
import java.util.Map;

@Service
public class SingerServiceImpl implements SingerService {
    @Autowired
    private SingerMapper singerMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return singerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Singer record) {
        return singerMapper.insert(record);
    }

    @Override
    public int insertSelective(Singer record) {
        return singerMapper.insertSelective(record);
    }

    @Override
    public Singer selectByPrimaryKey(Integer id) {
        return singerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Singer record) {
        return singerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Singer record) {
        return singerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Singer> findAll(Map<String, Object> map) {
        return singerMapper.findAll(map);
    }
}
